/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Project;

import DataModel.*;
import Project.DataLayer.PaymentDataManager;
import java.util.Date;

/**
 *
 * @author Rainiero
 */
public class PaymentManager {

    // <editor-fold defaultstate="collapsed" desc="Singleton">
    private static PaymentManager _instance = new PaymentManager();

    private PaymentManager()
    {
    }

    public static PaymentManager GetInstance()
    {
        return _instance;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Public Methods">
    public PaymentBase[] GetProjectPayments(int projectId)
    {
        return PaymentDataManager.GetInstance().GetProjectPayments(projectId);
    }

    public Payment GetPayment(int paymentId)
    {
        return PaymentDataManager.GetInstance().GetPayment(paymentId);
    }

    public void RegisterPayment(int paymentId, Date date, double amount)
    {
        PaymentDataManager.GetInstance().RegisterPayment(paymentId, date, amount);
    }
    // </editor-fold>

}
